package com.phalanxim.service;

import java.util.Date;

public class Address
{
  private Long id;
  private Long customerId;
  private String firmName;
  private String addressLine1;
  private String addressLine2;
  private String city;
  private String stateProvince;
  private String postalCode;
  private String primaryPhone;
  private String secondaryPhone;
  private String country;
  private AddressType addressType = AddressType.UNKNOWN;

  public Long getId()
  {
    return id;
  }

  public void setId(Long id)
  {
    this.id = id;
  }

  public Long getCustomerId()
  {
    return customerId;
  }

  public void setCustomerId(Long customerId)
  {
    this.customerId = customerId;
  }

  public String getFirmName()
  {
    return firmName;
  }

  public void setFirmName(String firmName)
  {
    this.firmName = firmName;
  }

  public String getAddressLine1()
  {
    return addressLine1;
  }

  public void setAddressLine1(String addressLine1)
  {
    this.addressLine1 = addressLine1;
  }

  public String getAddressLine2()
  {
    return addressLine2;
  }

  public void setAddressLine2(String addressLine2)
  {
    this.addressLine2 = addressLine2;
  }

  public String getCity()
  {
    return city;
  }

  public void setCity(String city)
  {
    this.city = city;
  }

  public String getStateProvince()
  {
    return stateProvince;
  }

  public void setStateProvince(String stateProvince)
  {
    this.stateProvince = stateProvince;
  }

  public String getPostalCode()
  {
    return postalCode;
  }

  public void setPostalCode(String postalCode)
  {
    this.postalCode = postalCode;
  }

  public String getPrimaryPhone()
  {
    return primaryPhone;
  }

  public void setPrimaryPhone(String primaryPhone)
  {
    this.primaryPhone = primaryPhone;
  }

  public String getSecondaryPhone()
  {
    return secondaryPhone;
  }

  public void setSecondaryPhone(String secondaryPhone)
  {
    this.secondaryPhone = secondaryPhone;
  }

  public String getCountry()
  {
    return country;
  }

  public void setCountry(String country)
  {
    this.country = country;
  }

  public int getAddressType()
  {
    return addressType.getValue();
  }

  public void setAddressType(int addressType)
  {
    this.addressType = AddressType.forCode(addressType);
  }
}
